From: Bilal Elmoussaoui Date: Tue, 14 Apr 2026 17:30:23 +0000 (+0200) Subject: Prefer using G_SOURCE_* constants instead of TRUE/FALSE X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~10^2^2~55 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e5915c9b049515235c3819bbd77efaaa1abaaf99;p=gnome-shell.git Prefer using G_SOURCE_* constants instead of TRUE/FALSE Makes the semantics clearer. Part-of: --- diff --git a/src/shell-global.c b/src/shell-global.c index 1fbc0ddb5..97b46e5cc 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1267,11 +1267,11 @@ run_leisure_functions (gpointer data) /* We started more work since we scheduled the idle */ if (global->work_count > 0) - return FALSE; + return G_SOURCE_REMOVE; /* No leisure closures, so we are done */ if (global->leisure_closures == NULL) - return FALSE; + return G_SOURCE_REMOVE; closures = global->leisure_closures; global->leisure_closures = NULL; @@ -1289,7 +1289,7 @@ run_leisure_functions (gpointer data) g_slist_free (closures); - return FALSE; + return G_SOURCE_REMOVE; } static void diff --git a/src/shell-perf-log.c b/src/shell-perf-log.c index b2c8591e8..1de97f4fb 100644 --- a/src/shell-perf-log.c +++ b/src/shell-perf-log.c @@ -190,7 +190,7 @@ statistics_timeout (gpointer data) shell_perf_log_collect_statistics (perf_log); - return TRUE; + return G_SOURCE_CONTINUE; } /**